package org.example.salesystem.service;

import org.example.salesystem.entity.ResultBody;

import java.util.List;
import java.util.Map;

public interface SearchService {
//    List<Map<String,Object>> searchByName(String name);
//    List<Map<String,Object>> searchByKind(String kind);
//    ResultBody searchGoodsByPrice(double minprice, double maxprice);
//    按照名称进行模糊查询
ResultBody searchByName(Map<String,Object>map);
    //    按照种类进行查询
    ResultBody searchByKind(Map<String,Object>map);
    //当传空值时，查询所有商品
    ResultBody search();
}

